<?php
namespace Admin\Models\school;
use Admin\Models\BaseModel;
class XhschoolStateNode extends BaseModel
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $iSSNId;

    /**
     *
     * @var string
     * @Column(type="string",  nullable=true)
     */
    public $mStandard;

    /**
     *
     * @var string
     * @Column(type="string", length=11, nullable=true)
     */
    public $sTag;

    /**
     *
     * @var integer
     * @Column(type="integer", length=11, nullable=true)
     */
    public $iSSId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $sName;


    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mJson;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $mReason;

    /**
     *
     * @var integer
     * @Column(type="integer",  nullable=true)
     */
    public $iGrade;

    /**
     *
     * @var integer
     * @Column(type="integer",  nullable=true)
     */
    public $iCopyGrade;

    /**
     *
     * @var string
     * @Column(type="string",  nullable=true)
     */
    public $sRealData;

    /**
     *
     * @var integer
     * @Column(type="integer",  nullable=true)
     */
    public $bPrecise;

    /**
     *
     * @var integer
     * @Column(type="integer", length=4, nullable=true)
     */
    public $bDelete;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tCreateDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iCreateUserId;

    /**
     *
     * @var string
     * @Column(type="string", nullable=true)
     */
    public $tLastModifyDate;

    /**
     *
     * @var integer
     * @Column(type="integer", length=20, nullable=true)
     */
    public $iLastModifyUserId;

    /**
     * 最大成绩
     * @var integer
     * create by xjq 20180512
     */
    public $iMaxGrade;

    /**
     * 锁定
     * @var integer
     * create by xjq 20180512
     */
    public $bLock;



//    /**
//     * Initialize method for model.
//     */
//    public function initialize()
//    {
//        parent::initialize();
//    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'XHSchool_StateNode';
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhschoolStateNode[]|XhschoolStateNode
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return XhschoolStateNode
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

//    public function

}
